Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Jan 2, 2025

Ref Latest PHPStan PR on 2.1.1 that already include getNextUnreachableStatements on UnreachableStatementNode node:

@samsonasik
Copy link
Member Author

@ondrejmirtes I tried the UnreachableStatementNode::getNextStatements() and it seems working ok 🎉

it just needs sync on rector-* packages on next PHPStan 2.1.x version released :)

@samsonasik samsonasik marked this pull request as draft January 2, 2025 13:46
@samsonasik samsonasik marked this pull request as ready for review January 5, 2025 16:49
@samsonasik samsonasik changed the title [PHPStan 2.1.x-dev] Handle next unreachable statement via UnreachableStatementNode->getNextUnreachableStatements() [PHPStan ^2.1.1] Handle next unreachable statement via UnreachableStatementNode->getNextUnreachableStatements() Jan 5, 2025
$nameResolver = new NameResolver();
$variadicMethodsVisitor = new VariadicMethodsVisitor();
$variadicFunctionsVisitor = new VariadicFunctionsVisitor();
$propertyHookNameVisitor = new PropertyHookNameVisitor();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomasVotruba on PHPStan 2.1.0, PropertyHookNameVisitor exists, but removed on PHPStan 2.1.1, this patch include it

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it and will release immediate release for it.

@samsonasik samsonasik merged commit 2e82ab4 into main Jan 5, 2025
41 checks passed
@samsonasik samsonasik deleted the use-phpstan-21xdev branch January 5, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants